package test;

import org.springframework.context.support.ClassPathXmlApplicationContext;




public class provider {

 


    public static void main(String[] args) throws Exception {

    	//The following statement using applicationContext.xml is working
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml"});
    	//The following statement using dubboProvider.xml is working
        //ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"config/dubboProvider.xml"});
    	//The following statement using AnnotationProvider.xml is not working on 2015.4.22
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {provider.class.getPackage().getName().replace('.', '/') + "/"+"AnnotationProvider.xml"});


        context.start();

 


        System.in.read(); // 按任意键退出


    }

 

}
